<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${website}resource/admin/css/admin.css" type="text/css" />
<script type="text/javascript" src="${website}resource/js/common_min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		//初始化cityName；
		$("#cityName").attr("value",$("#cityId").find('option:selected').text());
		//城市下拉框值改变时，cityName相应改变
		$("#cityId").change(function(){
			$("#cityName").attr("value",$("#cityId").find('option:selected').text());
		});
	});
</script>
<title>添加城市娱乐信息</title>
</head>
<body>
	<form action="${website}admin/city_addEntertainment.action" method="post">
	<table>
		<tr>
			<td>城市名称</td>
			<td>
				<select id="cityId" name="entertainment.cityId">
				<c:forEach items="${otherCity}" var="city">
					<option value="${city.cityId}">${city.cityName}</option>
				</c:forEach>
			</select>
			<input type="hidden" id="cityName" name="entertainment.cityName" />
		 </td>
		</tr>
		<tr>
			<td>城市娱乐概览</td>
			<td><textarea rows="4" cols="50" name="entertainment.sumDescription"  ></textarea></td>
		</tr>
		<tr>
			<td>民间戏剧</td>
			<td><textarea rows="4" cols="50" name="entertainment.theaterDescription"  ></textarea></td>
		</tr>
		<tr>
			<td>都市夜生活</td>
			<td><textarea rows="4" cols="50" name="entertainment.nightlifeDescription"  ></textarea></td>
		</tr>
		<tr>
			<td>都市休闲</td>
			<td><textarea rows="4" cols="50" name="entertainment.leisureDescription"  ></textarea></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="添加" /> </td>
		</tr>
	</table>
	</form>
</body>
</html>